package com.company.class11.Inter;

/**
 * @Classname UsbTest
 * @Description 类型说明
 * @Date 2022/5/7 0:57
 * @Created by zbw
 */

public class UsbTest {
    public static void main(String[] args) {
        //接口引用指向实现类对象
        USbDevice xiaomi = new MobilePhone();
        USbDevice eFan = new ElectFan();
        USbDevice mouse = new Mouse();

        xiaomi.supplyPower();
        eFan.supplyPower();
        mouse.supplyPower();

        xiaomi.fix("玩游戏");
        eFan.fix("冷风");
        mouse.fix("点点点");

    }
}
